package com.soft.javase.day03.review.statics;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/17
 */
public class StaticDemo {
    private String name;
    private static int count;

    public void study(){
        System.out.println(name+"正在学习");
    }

    public static void changeCount(){
        System.out.println(++count);
    }

    static {
        System.out.println("静态代码块");
    }

    {
        System.out.println("实例代码块");
    }

    public void setName(String name) {
        this.name = name;
    }
}
